import subprocess

def fastcopy_windows(src, dest):
    try:
        # 假设 FastCopy 已添加到系统路径
        cmd = [
            "FastCopy",
            f"/cmd=copy",
            f"/src={src}",
            f"/dest={dest}",
            "/auto_close",  # 复制完成后自动关闭
            "/log"          # 生成日志
        ]
        subprocess.run(cmd, check=True)
        print(f"复制完成: {src} -> {dest}")
    except subprocess.CalledProcessError as e:
        print(f"复制失败: {e}")

# 使用示例
fastcopy_windows("C:\\Users\\ASUS\\Desktop\\test3", "C:\\Users\\ASUS\\Desktop\\test4")